AUTOMAKE_OPTIONS = subdir-objects 

AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -I$(OPENBSC_INCDIR) -I$(LITECELL15_INCDIR)
AM_CFLAGS = -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCODEC_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(LIBOSMOTRAU_CFLAGS) $(LIBOSMOABIS_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOABIS_CFLAGS) $(LIBGPS_CFLAGS) $(ORTP_CFLAGS)
COMMON_LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOCODEC_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMOTRAU_LIBS) $(LIBOSMOABIS_LIBS) $(LIBOSMOCTRL_LIBS) $(ORTP_LIBS)

EXTRA_DIST = misc/lc15bts_mgr.h misc/lc15bts_misc.h misc/lc15bts_par.h \
	misc/lc15bts_temp.h misc/lc15bts_power.h misc/lc15bts_clock.h \
	misc/lc15bts_bid.h misc/lc15bts_nl.h \
	hw_misc.h l1_if.h l1_transp.h lc15bts.h oml_router.h utils.h

bin_PROGRAMS = osmo-bts-lc15 lc15bts-mgr lc15bts-util

COMMON_SOURCES = main.c lc15bts.c l1_if.c oml.c lc15bts_vty.c tch.c hw_misc.c calib_file.c \
		 utils.c misc/lc15bts_par.c misc/lc15bts_bid.c oml_router.c

osmo_bts_lc15_SOURCES = $(COMMON_SOURCES) l1_transp_hw.c
osmo_bts_lc15_LDADD = $(top_builddir)/src/common/libbts.a $(COMMON_LDADD)

lc15bts_mgr_SOURCES = \
		misc/lc15bts_mgr.c misc/lc15bts_misc.c \
		misc/lc15bts_par.c misc/lc15bts_nl.c \
		misc/lc15bts_temp.c misc/lc15bts_power.c \
		misc/lc15bts_clock.c misc/lc15bts_bid.c \
		misc/lc15bts_mgr_vty.c \
		misc/lc15bts_mgr_nl.c \
		misc/lc15bts_mgr_temp.c \
		misc/lc15bts_mgr_calib.c 

lc15bts_mgr_LDADD = $(top_builddir)/src/common/libbts.a $(LIBGPS_LIBS) $(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMOABIS_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOCTRL_LIBS)

lc15bts_util_SOURCES = misc/lc15bts_util.c misc/lc15bts_par.c
lc15bts_util_LDADD = $(LIBOSMOCORE_LIBS)
